#include "ISBNPrefix.h"
#include <iostream>
using namespace std;
#pragma once
class ISBN {
    char area[10];
	char publisher[10];
	char title[10];
	char isbn[12]; 
	char delimiter[2];
	int reg,vlid;
	int decode(const ISBNPrefix& list); 
public:
	ISBN();
	ISBN(const ISBN& obj);
	ISBN(const char* str, const ISBNPrefix& list); 
	void style(char c); 
	int empty() const; 
	int registered() const; 
	void toStr(char* str) const;  
	void toStrWithStyle(char* str) const; 
	void display(ostream& os) const; 
	int accept(istream& is, const ISBNPrefix& list); 
	friend int operator==(const ISBN& left, const ISBN& right);
    friend bool valid(const char* str); 
    friend ostream& operator<<(ostream& os, const ISBN& isbn);
};
